package com.itheima.strategy;

/**
 * @author zzw
 * @date 2025/10/25
 * @description 策略模式测试类
 */
public class Client {
    public static void main(String[] args) {
        Strategy strategy = new StrategyA();
        SalesMan salesMan = new SalesMan(strategy);
        salesMan.SalesManShow();

        System.out.println("======");

        strategy = new StrategyB();
        salesMan = new SalesMan(strategy);
        salesMan.SalesManShow();

        System.out.println("======");

        strategy = new StrategyC();
        salesMan = new SalesMan(strategy);
        salesMan.SalesManShow();
    }
}
